<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<title>Tab</title>
		<style>
			*{
				padding:0;
				margin:0;
			}
			ul{
				display: flex;
				list-style: none;
				background: #ccc;
				padding-left:100px;
			}
			li{
				height: 40px;
				line-height: 40px;
				width:100px;
				text-align: center;
				color:#fff;
			}
			.currency{
				border-bottom: 1px solid red;
			}
			.content{
				width:99%;
				margin:0 auto;
				height: 200px;
				background: cyan;
				display: none;
			}
		</style>
	</head>
	<body>
		<div class="main">
			
			<ul>
				<li class='currency'>杭州</li>
				<li>安徽</li>
				<li>武汉</li>
				<li>合肥</li>
				<li>常熟</li>
			</ul>
			
			<div class="content">
				<iframe src="1.html" width="100%" height="100%" frameborder='0'></iframe>
			</div>
			<div class="content">
				<iframe src="2.html" width="100%" height="100%" frameborder='0'></iframe>
			</div>
			<div class="content">
				<iframe src="3.html" width="100%" height="100%" frameborder='0'></iframe>
			</div>
			<div class="content">
				<iframe src="4.html" width="100%" height="100%" frameborder='0'></iframe>
			</div>
			<div class="content">
				<iframe src="5.html" width="100%" height="100%" frameborder='0'></iframe>
			</div>
		</div>
	</body>
	<script src="js/jquery.min.js"></script>
	<script>
		$(function(){
			$('.content').eq(0).css({'display':'block'});
			$("li").click(function(){
				$(this).siblings().removeClass('currency');
				$(this).addClass('currency');
				let index=$(this).index();
				$('.content').css({'display':'none'});
				$('.content').eq(index).css({'display':'block'});
			})
		})
	</script>
</html>
